package com.community.process._1010.config.property;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Description:
 * @Author: Administrator to Zbs
 * @Date: 2024/9/6 星期五 20:15
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "process")
public class ProcessProperty {

    public static String baseUrl;
    //放行地址 服务端带有权限的接口不可放行
    public static String[] ignoringUrl = new String[]{"/**/*"};
    /**
     * 订单超时时间 默认30分钟,单位秒
     */
    public static int orderTimeout = 30*60;

    public void setBaseUrl(String baseUrl) {
        ProcessProperty.baseUrl = baseUrl;
    }

    public void setIgnoringUrl(String[] ignoringUrl) {
        ProcessProperty.ignoringUrl = ignoringUrl;
    }

    public void setOrderTimeout(int orderTimeout) {
        ProcessProperty.orderTimeout = orderTimeout;
    }
}
